home *** CD-ROM | disk | FTP | other *** search
- NRM2(3F) Last changed: 11-2-98
-
-
- NNAAMMEE
- SSNNRRMM22, DDNNRRMM22, SSCCNNRRMM22, DDZZNNRRMM22 - Computes the Euclidean norm of a vector
-
- SSYYNNOOPPSSIISS
- Real
-
- _e_n_r_m == SSNNRRMM22 ((_n,, _x,, _i_n_c_x))
-
- Double precision
-
- _e_n_r_m == DDNNRRMM22 ((_n,, _x_i,, _i_n_c_x))
-
- Complex
-
- _e_n_r_m == SSCCNNRRMM22 ((_n,, _x,, _i_n_c_x))
-
- Double complex
-
- _e_n_r_m == DDZZNNRRMM22 ((_n,, _x_i,, _i_n_c_x))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- SSNNRRMM22/DDNNRRMM22 computes the Euclidean (_l ) norm of a real vector, as
- follows: _2
-
- enrm <- ||x|| =
- 2
- T n 2
- sqrt (x x) = sqrt (Sum * x )
- i=1 i
-
- _T
- where _x is a real vector, and _x denotes the transpose of _x.
-
- SSCCNNRRMM22/DDZZNNRRMM22 computes the Euclidean (_l ) norm of a complex vector, as
- follows: _2
-
- enrm <- ||x|| =
- 2
- H n _
- sqrt (x x) = sqrt (Sum x x )
- i=1 i i
- _H
- where _x is a complex vector, and _x denotes the conjugate transpose of
- _x.
-
- These functions have the following arguments:
-
- _e_n_r_m Result. (output)
- SSNNRRMM22: Real result.
- DDNNRRMM22: Double precision result.
- SSCCNNRRMM22: Real result.
- DDZZNNRRMM22: Double precision result.
- Result (Euclidean norm). If _n <= 0, _e_n_r_m is set to 0.
-
- _n Integer. (input)
- Number of elements in the operand vector.
-
- _x Array of dimension (_n-1) * |_i_n_c_x| + 1. (input)
- SSNNRRMM22: Real array.
- DDNNRRMM22: Double precision array.
- SSCCNNRRMM22: Complex array.
- DDZZNNRRMM22: Double complex array.
- Array _x contains the operand vector.
-
- _i_n_c_x Integer. (input)
- Increment between elements of _x. If _i_n_c_x = 0, the results
- will be unpredictable.
-
- NNOOTTEESS
- These routines are Level 1 Basic Linear Algebra Subprograms (Level 1
- BLAS).
-
- When working backward (_i_n_c_x < 0), each routine starts at the end of
- the vector and moves backward, as follows:
-
- _x(1-_i_n_c_x * (_n-1)), _x(1-_i_n_c_x * (_n-2)), ..., _x(1)
-
- SSEEEE AALLSSOO
- This man page is available only online.
-